<script setup>
const props = defineProps(['title'])
</script>

<template>
  <el-card>
        <div class="extra">
          <span>{{ title }}</span>
          <slot name="extra"></slot>
        </div>
        <slot></slot>
    </el-card>
</template>

<style lang="scss" scoped>
.extra {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
</style>
